package com.sgb.kjwl.model.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;
import com.sgb.kjwl.R;
import com.swgk.core.recyclerview.secondary.SecondaryEntity;

//材料菜单选项
public class MenuEntity3<D> extends SecondaryEntity<D> implements Parcelable {
    @SerializedName("appImg")
    private String appImg;
    @SerializedName("appIcon")
    private String appIcon;
    @SerializedName("name")
    private String name;
    @SerializedName("id")
    private String id;
    @SerializedName("parentId")
    private String parentId;

    public String getAppImg() {
        return appImg;
    }

    public void setAppImg(String appImg) {
        this.appImg = appImg;
    }

    public String getAppIcon() {
        return appIcon;
    }

    public void setAppIcon(String appIcon) {
        this.appIcon = appIcon;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.appImg);
        dest.writeString(this.appIcon);
        dest.writeString(this.name);
        dest.writeString(this.id);
        dest.writeString(this.parentId);
    }

    public MenuEntity3() {
    }

    protected MenuEntity3(Parcel in) {
        this.appImg = in.readString();
        this.appIcon = in.readString();
        this.name = in.readString();
        this.id = in.readString();
        this.parentId = in.readString();
    }

    public static final Creator<MenuEntity3> CREATOR = new Creator<MenuEntity3>() {
        @Override
        public MenuEntity3 createFromParcel(Parcel source) {
            return new MenuEntity3(source);
        }

        @Override
        public MenuEntity3[] newArray(int size) {
            return new MenuEntity3[size];
        }
    };
}
